﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Valgmotor.Controller;
using Valgmotor.Interface;
using Microsoft.Win32;
using System.IO;

namespace Valgmotor
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        ValgController valgCon;

        public MainWindow()
        {
            InitializeComponent();
            valgCon = new ValgController();
        }

        public MainWindow(ValgController Con)
        {
            InitializeComponent();
            valgCon = Con;
        }

        private void btn_opretValg_Click(object sender, RoutedEventArgs e)
        {

            
            
            /*
            var NewWindows = new OpretValg();
            NewWindows.Show();
            this.Close();
             * */
        }

        //private void Button_Click_1(object sender, RoutedEventArgs e)
        //{
        //    OpenFileDialog ofd = new OpenFileDialog();
        //    ofd.Multiselect = true;
        //    ofd.Filter = "CSV |* .csv";
        //    ofd.ShowDialog();

        //    //valgColl.NulKørsel(ofd.FileNames);

            
        //}



        private void btn_inputdata_Click(object sender, RoutedEventArgs e)
        {
            var NewWindows = new InputData(valgCon);
            NewWindows.Show();
            this.Close();
        }
    }
}
